<template>
  <UseDark v-slot="{ isDark }">
    <div :class="['welcome-box', { dark: isDark, light: !isDark }]">
      <div class="content">
        <jc-icon class="logo" name="jcstudio-v2-color" />
        <p class="copy">&copy; 2023 <a href="">JC-Studio 李俊才</a></p>
        <h2 class="title">欢迎使用 JC ADMIN，一款桌面端框架。</h2>
      </div>
    </div>
  </UseDark>
</template>

<script lang="ts" setup>
import UseDark from '@/apps/dark/UseDark.vue'
</script>

<style lang="scss" scoped>
.welcome-box {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 56%;
    .logo {
      font-size: 90px;
    }
    .copy {
      padding-top: 12px;
    }
    .title {
      padding: 12px;
    }
  }

  &.light {
    background-color: #ffffff;
    .content {
      .title {
        color: rgb(0, 231, 173);
      }
    }
  }

  &.dark {
    background-color: #1e1e1e;

    .content {
      .title {
        color: rgb(0, 231, 173);
      }
    }
  }
}
</style>
